<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title></title>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="{{URL::asset('/assets/bootstrap/css/bootstrap.css')}}" media="all">
    <link rel="stylesheet" href="{{URL::asset('/assets/layui/css/layui.css')}}" media="all">
    <link rel="stylesheet" href="{{URL::asset('/assets/pnotify/pnotify.css')}}" media="all">
    <script src="{{URL::asset('/assets/jquery/jquery.min.js')}}" charset="utf-8"></script>
    <script src="{{URL::asset('/assets/bootstrap/js/bootstrap.js')}}" charset="utf-8"></script>
    <script src="{{URL::asset('/assets/layui/layui.js')}}" charset="utf-8"></script>
    <script src="{{URL::asset('/assets/pnotify/pnotify.js')}}" charset="utf-8"></script>
    <script src="{{URL::asset('/js/common.js')}}" charset="utf-8"></script>
    <style>
        .layui-nav-item{
            float: right;
        }
        .left{
            float: left;
        }
    </style>
</head>
<body>
<script>
    layui.use('element', function(){
        var element = layui.element;
    });
</script>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
<ul class="layui-nav">
    <li class="layui-nav-item">
        <a style="text-decoration:none;" href="{{url('client/index')}}">前台</a>
    </li>
    <li class="layui-nav-item">
        <a style="text-decoration:none;" href="">个人中心<span class="layui-badge-dot"></span></a>
    </li>
    <li class="layui-nav-item">
        <a style="text-decoration:none;" href=""><img src="http://t.cn/RCzsdCq" class="layui-nav-img">我</a>
        <dl class="layui-nav-child">
            <dd><a style="text-decoration:none;" href="javascript:;">修改信息</a></dd>
            <dd><a style="text-decoration:none;" href="javascript:;">安全管理</a></dd>
            <dd><a style="text-decoration:none;" href="javascript:;">退了</a></dd>
        </dl>
    </li>
</ul>
    </div>
<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
<ul class="layui-nav layui-nav-tree" lay-filter="test">
    <!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->
    <li class="layui-nav-item layui-nav-itemed">
        <a style="text-decoration:none;" href="javascript:;">默认展开</a>
        <dl class="layui-nav-child">
            <dd><a style="text-decoration:none;" href="javascript:;">选项1</a></dd>
            <dd><a style="text-decoration:none;" href="javascript:;">选项2</a></dd>
            <dd><a style="text-decoration:none;" href="">跳转</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item">
        <a style="text-decoration:none;" href="javascript:;">页面</a>
        <dl class="layui-nav-child">
            <dd><a style="text-decoration:none;" href="#" onclick="go('{{url("admin/page/add").'/'.\App\Model\Page::TYPE_PAGE}}',this)">新建页面</a></dd>
            <dd><a style="text-decoration:none;" href="#" onclick="go('{{url("admin/page/index")}}',this)">所有页面</a></dd>
            <dd><a style="text-decoration:none;" href="">电商平台</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item">
        <a style="text-decoration:none;" href="javascript:;">文章</a>
        <dl class="layui-nav-child">
            <dd><a style="text-decoration:none;" href="#" onclick="go('{{url("admin/page/add").'/'.\App\Model\Page::TYPE_POST}}',this)">写文章</a></dd>
            <dd><a style="text-decoration:none;" href="#" onclick="go('{{url("admin/post/all")}}',this)">所有文章</a></dd>
            <dd><a style="text-decoration:none;" href="#" onclick="go('{{url("admin/category/index/1")}}',this)">分类目录</a></dd>
            <dd><a style="text-decoration:none;" href="#" onclick="go('{{url("admin/category/index/2")}}',this)">标签</a></dd></dl>
    </li>
    <li class="layui-nav-item"><a style="text-decoration:none;" href="">产品</a></li>
    <li class="layui-nav-item"><a style="text-decoration:none;" href="">大数据</a></li>
</ul>
    </div>
</div>
</div>
<script>
    var go = function (url,obj) {
        $('#page').attr('src',url);
    }
</script>
<div class="layui-body" style="padding-left: 20px; padding-right: 20px;padding-top: 60px;">
    <iframe frameborder="0" style="width: 100%;height: 100%" id="page" src="" scrolling=""></iframe>
</div>
<script>
    function changeFrameHeight(){
        var ifm= document.getElementById("page");
        ifm.height=document.getElementsByClassName('layui-body').clientHeight;
    }
    window.onresize=function(){
        changeFrameHeight();
    }
</script>
</body>
</html>